/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.cesupa.cabcc.sudi;

import br.cesupa.cabcc.dao.EventoDAO;
import br.cesupa.cabcc.entity.Evento;
import java.util.Date;
import java.util.List;

/**
 *
 * @author yuri
 */
public class EventoSUDI extends GenericSUDI<Evento> implements EventoDAO {

    public Evento getById(Integer id) {
        return (Evento) super.executeNamedQueryObject("Evento.findById", "id", id);
    }

    public List<Evento> getLikeTitulo(String titulo) {
        return super.executeNamedQueryList("Evento.findLikeTitulo", ":titulo", "%"+titulo+"%");
    }

    public List<Evento> getByData(Date data) {
        return super.executeNamedQueryList("Evento.findByData", ":dataEvento", data);
    }

}
